package ifips.s7.modele;

import java.util.ArrayList;

public class Etat_Turing {

    protected boolean Initial;
    protected boolean Final;
        protected int id;

    protected ArrayList<Transition_turing> Transitions;


    public Etat_Turing(int id, boolean i, boolean f){
        this.id = id;
        this.Initial = i;
        this.Final = f;
        this.Transitions = new ArrayList<Transition_turing>();

    };

    boolean isInitial() {
        return Initial;
    }

    boolean isFinal() {
        return Final;
    }
    
    int getId(){
    	
    	return this.id;
    	
    }
    
    void addTransition(Transition_turing T){
    	
    	this.Transitions.add(T);
    	
    }
    
    ArrayList<Transition_turing> getTransitions(){
    	return this.Transitions;
    }
    
}
